#include<stdio.h>
int main(void)
{
    int a=0x12345678;
    char *p=(char*)&a;
    int b=*(p+1);
    if(b==0x56)
        printf("小端序");
    if(b==0x34)
        printf("大端序");
    return 0;
}